#include "poll.hpp"
#include <string>

static void Usage(std::string proc)
{
    std::cerr << "Usage:" << "\n\t" << proc << " port" << std::endl;
}

int main(int argc,char* argv[])
{
  if(argc != 2){
        Usage(argv[0]);
        exit(4);
    }

  unsigned short port = atoi(argv[1]);
  my_poll::Poll *poll_a=new my_poll::Poll(port);
  poll_a->InitPoll();
    poll_a->Run();

  return 0;
}
